// 'use strict'

// 加载jsoup.jar
runtime.loadJar("./jsoup-1.17.2.jar")
// 使用jsoup解析html
importClass(org.jsoup.Jsoup);
log(Jsoup.parse(files.read("./test.html")));
exit()

// runtime.loadJar("./holiday/holiday.jar")
runtime.loadJar("./holiday/jsoup-1.17.2.jar")
importPackage(Package.xyz.xiamang.holiday)

importClass(Package.xyz.xiamang.holiday.HolidayService)


let server = new HolidayService();

let is = server.isHoliday("20240404")
console.log("is holiday: ", is);